package cn.wx.basic.util;

import lombok.Data;


/*
*   返回页面的工具类
* */

@Data
public class JsonResult {
    private boolean success = true;
    private String msg = "操作成功";
    private Object resultObj;

    public JsonResult setMsg(String msg) {
        this.success = false;
        this.msg  = msg;
        return this;
    }

    public JsonResult setResultObj(Object msg) {
        this.resultObj  = msg;
        return this;
    }



    public static JsonResult me(){
    return  new JsonResult();
}



}
